//
//  DealListViewController.swift
//  SwiftPro
//
//  Created by mac on 2024/8/3.
//

import UIKit

class DealListViewController: BaseViewController, CommonListDelegate {
    func didSelectItem<Item>(_ item: Item) {
        
    }

    override func viewDidLoad() {
        super.viewDidLoad()

        let productLsit = CommonList<Deal,DealListCell>(frame: .zero)
        productLsit.items = FakeData.createDeals()
        productLsit.delegate = self
        view.addSubview(productLsit)
        productLsit.snp.makeConstraints { make in
            make.edges.equalToSuperview()
        }
    }

}
